home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / DEMON / DEVELOPER / NETCONF0.ARC / !NetConfig_Resources_TCPconfig < prev    next >
Encoding:
Text File  |  1995-08-11  |  20.9 KB  |  382 lines

  1. # !TCPIPUser.Config
  2. # File of initial configuration settings, read when !TCPIP starts up.
  3.  
  4. terminal * @main W
  5.                                 # Attach macro menu "main" to the main
  6.                                 # command window, set cursor wrap mode on.
  7.  
  8. # Supply some information about your particular machine
  9.  
  10. set node "{{net_account}}"
  11.                                 # Your machine name (e.g., "fubar" if your
  12.                                 # fully-qualified domain name is
  13.                                 # fubar.demon.co.uk).
  14.  
  15. set domain "{{net_domain}}"
  16.                 # Domain used by your service provider
  17.                                 # (e.g., "demon.co.uk" if your fully-
  18.                                 # qualified domain name is
  19.                                 # fubar.demon.co.uk.
  20.  
  21. set host "{node}.{domain}"
  22.                                 # Host name is constructed by TCPIP from
  23.                                 # the values of {node} and {domain}
  24.                                 # defined above.
  25.  
  26. @if net_fixed_ip$>""
  27. set ip_addr "{{net_ip_address}}"
  28.                                 # Your IP address (e.g., "158.152.9.18"
  29.                                 # without square brackets).
  30. @else
  31. # For dynamically assigned IP addresses, the variable ip_addr is set
  32. # automatically from the system variable TCPIP$String$ip_addr, which is
  33. # in turn set by !SLIPdial at login time.
  34. @endif
  35.  
  36. hostname {host}
  37.                                 # Tell TCPIP what your hostname is, using
  38.                                 # the value of {host} defined above.
  39.  
  40. ip address [{ip_addr}]
  41.                                 # Tell TCPIP what your IP address is,
  42.                                 # based on the value of {ip_addr}
  43.                                 # defined above (if you have a fixed IP
  44.                                 # address) or passed by SlipDial (if
  45.                                 # you have a dynamic IP address).
  46.  
  47. domain suffix {domain}
  48.                                 # Allows you to refer to the machines of
  49.                                 # other subscribers to your provider
  50.                                 # by their node name (e.g., if the domain
  51.                                 # is "demon.co.uk" you can use "finger
  52.                                 # foo" instead of
  53.                                 # "finger foo.demon.co.uk").
  54.  
  55. set nsqserver "{{net_nsq_server}}"
  56.                                 # Server to use for name-server queries
  57.                                 # entered via the NSQuery macro menu.
  58.                                 # Such queries are for human use (i.e.,
  59.                                 # finding out aliases of machines) and
  60.                                 # are not used by TCPIP, so it is not
  61.                                 # vital.
  62.  
  63. # A whole load of TCPIP defines coming up so the meaning of the attach
  64. # parameters can be clearly commented.
  65.  
  66. set driver "{{net_serial_driver}}"
  67.                                 # Serial Block driver name (as given in
  68.                                 # !SerialDev.modules, such as Internal,
  69.                                 # II_Dual, SP_Dual, etc.).  Which one
  70.                                 # you use depends on whether you are using
  71.                                 # the internal (in-built) serial port or
  72.                                 # an Intelligent Interfaces dual serial
  73.                                 # port card or a dual serial port card from
  74.                                 # The Serial Port.  Some drivers have a 
  75.                                 # PC variant which means you are using
  76.                                 # a PC-style serial cable rather than an
  77.                                 # Acorn-style cable (which uses special
  78.                                 # wiring to get round problems with the
  79.                                 # internal serial port on earlier models).
  80.                                 # Later models (A5000 and later) can use
  81.                                 # either style of cable provided you choose
  82.                                 # the appropriate block driver.
  83.  
  84. set port "{{net_port}}"
  85.                                 # Serial port number (Internal is always
  86.                                 # zero, II_Dual and SP_Dual can be 0 or 1 -
  87.                                 # or higher if you have more than one dual
  88.                                 # serial port cards).
  89.  
  90. set protocol "{{net_ka9q_protocol}}"
  91.                                 # Protocol to talk down the line.  At
  92.                                 # present TCPIP understands both slip and
  93.                                 # cslip, but not ppp (or its variants such
  94.                                 # as nolqm).  Cslip is more efficient if
  95.                                 # your provider offers it.
  96.                                 # Note that with most providers, if you
  97.                                 # wish to use cslip you set the protocol
  98.                                 # here to be cslip but when you connect
  99.                                 # you tell your provider you are using
  100.                                 # slip and their software auto-detects
  101.                                 # whether you are using slip or cslip -
  102.                                 # in fact your provider's s/w may not
  103.                                 # understand if you answer cslip when you
  104.                                 # connect.
  105.  
  106. set speed "0"
  107.                                 # Serial port speed, or "0" to leave at
  108.                                 # current setting (0 is strongly
  109.                                 # recommended).
  110.  
  111. set mtu "{{net_mtu}}"
  112.                                 # Maximum transmission unit.  For most
  113.                                 # uses a value of 576 is recommended.  Note
  114.                                 # that tcp mss (set later) should be 40
  115.                                 # less than mtu (so if mtu is 576 then
  116.                                 # tcp mss should be 536).
  117.                                 # For ethernet a value of 1500 is more
  118.                                 # efficient.
  119.  
  120. attach asy {driver} {port} {protocol} sl0 2048 {mtu} {speed}
  121.                                 # Tell TCPIP to attach the serial port.
  122.  
  123. route add default sl0 [{{net_router}}] 1
  124.                                 # Note that with slip or cslip, the IP
  125.                                 # address you use here doesn't really
  126.                                 # matter.  It will matter if PPP support
  127.                                 # is added.
  128.  
  129. ip ttl 64
  130.                                 # Number of hops before an IP packet is
  131.                                 # considered to be dead - it is assumed
  132.                                 # that no machine on the internet is more
  133.                                 # than 64 hops away so that any packet
  134.                                 # which exceeds this is stuck in a routeing
  135.                                 # loop.  Lower values are appropriate for
  136.                                 # packet radio and ethernet connections,
  137.                                 # but you should not consider altering
  138.                                 # this for internet use unless you *really*
  139.                                 # know what you are doing.
  140.  
  141. tcp mss 536
  142.                                 # Maximum size of TCP packets.  Since
  143.                                 # these are wrapped in IP packets and
  144.                                 # IP packets have a 40-byte header, this
  145.                                 # value should be 40 less than the size
  146.                                 # of the IP packet set by the "set mtu"
  147.                                 # command above.
  148.  
  149. tcp irtt 5000
  150.                                 # A guess at the round-trip time of packets
  151.                                 # in milliseconds.  When a connection is
  152.                                 # initiated it is assumed that any packet
  153.                                 # which is unacknowledged within this
  154.                                 # time has gone missing.  After a packet
  155.                                 # has been acknowledged TCPIP will use
  156.                                 # an average of the actual round-trip times
  157.                                 # instead.  This initial guess at the
  158.                                 # round-trip time prevents a flurry of
  159.                                 # retransmission when a new connection
  160.                                 # starts on a slow channel.  Do not alter
  161.                                 # unless you know what you're doing.
  162.  
  163. tcp window 21440
  164.                                 # This command allocates a block of memory
  165.                                 # for each incoming connection to use as
  166.                                 # a buffer.  The higher it is, the better
  167.                                 # the throughput (particularly on a slow
  168.                                 # connection), but the more memory used
  169.                                 # by TCPIP for each incoming connection.
  170.                                 # Should be a multiple of tcp_mss to avoid
  171.                                 # wasting memory.
  172.  
  173. tcp hangup 60 10
  174.                                 # TCPIP will automatically check for
  175.                                 # activity every 60 seconds and hangup
  176.                                 # if there have been 10 consecutive checks
  177.                                 # with no activity.  The values here
  178.                                 # assume you are web browsing, with long
  179.                                 # periods of inactivity whilst you read
  180.                                 # the page.  If you don't browse the web
  181.                                 # then something like 15 and 3 may be
  182.                                 # better at saving your phone bills.
  183.                                 # You can disable the check by making
  184.                                 # either or both values 0.
  185.                                 # Note that this only works if your modem
  186.                                 # has been configured to hang up when DTR
  187.                                 # drops.
  188.  
  189. resolve timeout 5
  190.                                 # Time, in seconds, TCPIP will wait for
  191.                                 # a DNS query to be answered before trying
  192.                                 # a different server.  A low value is
  193.                                 # best if your provider's servers are
  194.                                 # unreliable, a high value (such as 30) is
  195.                                 # better if they are heavily loaded.  
  196.  
  197. resolve names yes
  198.                                 # Show any host information by name
  199.                                 # rather than IP address.  This is
  200.                                 # much more useful but does slow things
  201.                                 # down somewhat.  Use no instead of yes
  202.                                 # if you prefer speed.
  203.  
  204. # Start up server tasks to respond to various requests (not actually separate
  205. # Wimp tasks)
  206.  
  207. start echo                         # Start the echo server.
  208. start discard                      # Start the discard server.
  209.  
  210. # Uncomment the next line to let outsiders download/upload files from/to
  211. # your machine.
  212. #start ftp                          # Start the ftp server which allows
  213.                                    # others to transfer files to and from
  214.                                    # your machine.  Note that you must also
  215.                                    # set up !TCPIPUser.FTP.users accordingly.
  216.  
  217. @if net_mail_protocol$="SMTP"
  218. start smtp                         # Allow incoming mail to be delivered to
  219.                                    # your machine by SMTP.
  220. @endif
  221.  
  222. start finger                       # Allow outsiders to find out information
  223.                                    # about users on your machine by fingering
  224.                                    # it.  Note: you make such information
  225.                                    # available about a user (say "fred") by
  226.                                    # creating a textfile called
  227.                                    # !TCPIPUser.finger.fred.
  228.  
  229. start telnet                       # This allows other people to telnet to
  230.                                    # your machine.  On other systems this
  231.                                    # would allow them to login, but this
  232.                                    # is not possible on the Arc so an incoming
  233.                                    # telnet starts up a chat window so you
  234.                                    # can talk to them.  You may wish to
  235.                                    # disable this by commenting it out.
  236.  
  237. start telnet 87                    # This allows people to telnet to your
  238.                                    # machine using the well-known chat port,
  239.                                    # which starts up a chat window.  Your
  240.                                    # provider may attempt to contact you in
  241.                                    # this way if they have to shut down the
  242.                                    # PoP you are connected to, so you are
  243.                                    # advised not to disable it.
  244.  
  245. # Various settings controlling fetching of Usenet news
  246.  
  247. nntp trace 2                       # Define level of tracing information when
  248.                                    # downloading news.  2 is a sensible value
  249.                                    # for day-to-day use.
  250.  
  251. nntp dup hist                      # Instruct TCPIP to keep a history file
  252.                                    # of downloaded message IDs to prevent
  253.                                    # duplicate news articles appearing.
  254.                                    # If you use ReaderS to read news you may
  255.                                    # prefer "nntp dup readers", although this
  256.                                    # has disadvantages as well as advantages.
  257.  
  258. nntp trim 48                       # Delete any message ID from the history
  259.                                    # file that is older than 48 hours.  This
  260.                                    # is a sensible value in case your
  261.                                    # provider's ever has problems and you
  262.                                    # have to set the time of the last download
  263.                                    # back a day to get missing articles.
  264.  
  265. nntp fudge 120                     # This value, in seconds, is used to adjust
  266.                                    # the time of your last news download
  267.                                    # backwards to allow for clock drift on
  268.                                    # your machine or the news server.
  269.  
  270. nntp direct on                     # Articles are written directly to the
  271.                                    # news batch instead of via a scrap file.
  272.                                    # There is only a marginal improvement in
  273.                                    # setting this off if Wimp$Scrap is on a
  274.                                    # RAM disc, so you may as well leave it on.
  275.  
  276. nntp batch 12                      # Number of simultaneous news article
  277.                                    # requests that may be made.  A slight
  278.                                    # improvement will be seen by increasing
  279.                                    # this to the maximum of 16.
  280.  
  281. nntp newgroups yes                 # List to a file all the new newsgroups
  282.                                    # which have been created since you last
  283.                                    # downloaded news.
  284.  
  285. nntp retry 2 100                   # If the news server rejects your connection
  286.                                    # because of loading, TCPIP will
  287.                                    # automatically retry every 2 seconds, and
  288.                                    # will make up to 100 attempts to connect
  289.                                    # if necessary.  Setting either parameter
  290.                                    # to 0 will disable this.
  291.  
  292. # Some settings to do with sending and receiving mail
  293.  
  294. smtp trace 1                       # Define level of trace information when
  295.                                    # sending mail.
  296.  
  297. smtp sep rm                        # Separator used between messages in your
  298.                                    # smtp mailboxes.  The default is "From "
  299.                                    # but the rm separator is more efficient
  300.                                    # if your mail reader understands it.
  301.                                    # Do not change whilst you have mail
  302.                                    # that has not been transferred to your
  303.                                    # mailer, or your mailer will get confused.
  304.  
  305. pop trace 1                        # Define level of trace information when
  306.                                    # receiving POP mail.       
  307.  
  308. pop sep rm                         # As for smtp sep (see above) but used for
  309.                                    # POP mailboxes.
  310.  
  311. # Options for FTP sessions
  312.  
  313. ftpopt prompt long                 # Make the prompt in ftp sessions show
  314.                                    # the full directory name.  Alternatives
  315.                                    # are "short" (show just the last element
  316.                                    # of the path) and "nodir" (show just an
  317.                                    # "ftp>" prompt.
  318.  
  319. ftpopt trace 0                     # Do not display reply codes from ftp
  320.                                    # server (change to 1 to see full reply
  321.                                    # codes).
  322.  
  323. ftpopt winsize 80 200 80 24        # Make ftp session windows open up
  324.                                    # with a work area of 80 columns by 200
  325.                                    # rows and a visible size of 80 columns
  326.                                    # by 24 rows.
  327.                                    # You may omit trailing parameters and
  328.                                    # will get default values for those
  329.                                    # parameters omitted - default values are
  330.                                    # 80 24 80 24 (so the command could have
  331.                                    # been specified as just "ftpopt winsize
  332.                                    # 80 200").
  333.  
  334. ftpopt path auto                   # Use the automatic path processing defined
  335.                                    # in !TCPIPUser.FTP.PathEnt - this controls
  336.                                    # translation from file extensions to RISC
  337.                                    # OS filetypes, placement of downloaded
  338.                                    # files in various directories depending on
  339.                                    # filename and extension (so fred.jpg will
  340.                                    # appear as a file called fred of filetype
  341.                                    # JPEG in directory Images)
  342.                                    # Alternatives to "auto" are "type" which
  343.                                    # just translates extensions to RISC OS
  344.                                    # filetypes and "off" which replaces the
  345.                                    # "." extension separator by "_" and
  346.                                    # truncates the result as necessary.
  347.                                    # Auto is the best choice...
  348.  
  349. ftpopt type image                  # Make ftp sessions start up in image
  350.                                    # (binary) mode.  A text file transferred
  351.                                    # in binary mode may have the wrong end-of-
  352.                                    # line markers, but a binary file
  353.                                    # transferred in text mode will be
  354.                                    # corrupted, so this is safest.
  355.  
  356. ftpopt hash 1                      # Show a running byte count (and percentage
  357.                                    # if the remote server indicates the size
  358.                                    # of the file).  Alternatives are "0" which
  359.                                    # turns off any indication and any number
  360.                                    # higher than one which prints a #-sign
  361.                                    # each time that number of bytes has been
  362.                                    # transferred.
  363.  
  364. set ftpuser  "ftpuser"             # Used to construct your password when you
  365.                                    # connect to another machine by anonymous
  366.                                    # ftp (e.g., "xyz" - this is used as
  367.                                    # xyz@{host} and the value of {host} is
  368.                                    # expanded by the ftp script).
  369.                                    # This user will be mailed by the ftp
  370.                                    # site if, for instance, there is a
  371.                                    # problem with a file you have downloaded
  372.                                    # (such as a virus).
  373.  
  374. log <TCPIP$Dir>.logfile            # Log events to a logfile.  Note that you
  375.                                    # must check and delete it periodically
  376.                                    # or it will fill your hard disc.  Also
  377.                                    # note that you will hardly ever examine
  378.                                    # it once you are happy your setup is
  379.                                    # working correctly so you may as well turn
  380.                                    # logging off (by commenting this line out)
  381.                                    # once everything is OK.
  382.